#!/bin/sh
usage() {
  echo "Usage: sh 执行脚本.sh [up]"
  exit 1
}
case "$1" in
"up")
   echo "环境：${active}；项目：${project}"
   if [ "${active}" == "test" ]; then
      export java_opts="-Xms256m -Xmx256m"
   else
      export java_opts="-Xms256m -Xmx256m"
   fi
  docker-compose build
  docker stop          "${project}"
  docker rm -f         "${project}"
  docker-compose up -d
  ;;
*)
  usage
  ;;
esac
